package day05;

import java.util.Scanner;

public class NightDemo {
    public static void main(String[] args) {
        int count = 0;
        int sum = 0;
        for (int i = 1; i < 101; i++) {
            if (i % 2 == 0) {
                count++;
                sum += i;
            }
        }
        System.out.println(count);
        System.out.println(sum);

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字：");
        int n = sc.nextInt();
        int i = 0;
        while (n != 88 && i < 101) {
            System.out.println("继续！");
            n = sc.nextInt();
            i++;
        }
        System.out.println("对了");

    }
}
